package cn.lyj.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.GenericGenerator;

/**
 * BizLeave entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "biz_leave", catalog = "jboadb")

public class BizLeave implements java.io.Serializable {

	// Fields

	private Integer id;
	private String employeeSn;
	private Date starttime;
	private Date endtime;
	private Double leaveday;
	private String reason;
	private String status;
	private String leavetype;
	private String nextDealSn;
	private String approveOpinion;
	private Date createtime;
	private Date modifytime;

	// Constructors

	/** default constructor */
	public BizLeave() {
	}

	/** minimal constructor */
	public BizLeave(String employeeSn, Date starttime, Date endtime, Double leaveday, String reason) {
		this.employeeSn = employeeSn;
		this.starttime = starttime;
		this.endtime = endtime;
		this.leaveday = leaveday;
		this.reason = reason;
	}

	/** full constructor */
	public BizLeave(String employeeSn, Date starttime, Date endtime, Double leaveday, String reason, String status,
			String leavetype, String nextDealSn, String approveOpinion, Date createtime, Date modifytime) {
		this.employeeSn = employeeSn;
		this.starttime = starttime;
		this.endtime = endtime;
		this.leaveday = leaveday;
		this.reason = reason;
		this.status = status;
		this.leavetype = leavetype;
		this.nextDealSn = nextDealSn;
		this.approveOpinion = approveOpinion;
		this.createtime = createtime;
		this.modifytime = modifytime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")

	@Column(name = "ID", unique = true, nullable = false)

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "EMPLOYEE_SN", nullable = false, length = 50)

	public String getEmployeeSn() {
		return this.employeeSn;
	}

	public void setEmployeeSn(String employeeSn) {
		this.employeeSn = employeeSn;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "STARTTIME", nullable = false, length = 10)

	public Date getStarttime() {
		return this.starttime;
	}

	public void setStarttime(Date starttime) {
		this.starttime = starttime;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "ENDTIME", nullable = false, length = 10)

	public Date getEndtime() {
		return this.endtime;
	}

	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}

	@Column(name = "LEAVEDAY", nullable = false, precision = 5, scale = 1)

	public Double getLeaveday() {
		return this.leaveday;
	}

	public void setLeaveday(Double leaveday) {
		this.leaveday = leaveday;
	}

	@Column(name = "REASON", nullable = false, length = 500)

	public String getReason() {
		return this.reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	@Column(name = "STATUS", length = 20)

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "LEAVETYPE", length = 50)

	public String getLeavetype() {
		return this.leavetype;
	}

	public void setLeavetype(String leavetype) {
		this.leavetype = leavetype;
	}

	@Column(name = "NEXT_DEAL_SN", length = 50)

	public String getNextDealSn() {
		return this.nextDealSn;
	}

	public void setNextDealSn(String nextDealSn) {
		this.nextDealSn = nextDealSn;
	}

	@Column(name = "APPROVE_OPINION", length = 100)

	public String getApproveOpinion() {
		return this.approveOpinion;
	}

	public void setApproveOpinion(String approveOpinion) {
		this.approveOpinion = approveOpinion;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "CREATETIME", length = 10)

	public Date getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "MODIFYTIME", length = 10)

	public Date getModifytime() {
		return this.modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

}